package cn.yj.provider.api;

import cn.yj.frame.annotation.RpcService;
import cn.yj.service.api.IYJRpcService;
import cn.yj.service.vo.YJRpc;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author 永健
 * @since 2022-01-18 22:04
 */
@RpcService
public class YjRpcService implements IYJRpcService {

    @Value("${server.port}")
    private Integer port;

    @Override
    public YJRpc getYjRpc() {
        YJRpc yjRpc = YJRpc.newThis();
        yjRpc.setPort(port);
        return yjRpc;
    }
}
